<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
define('IN_ECS', true);
require('../includes/init.php');
$fmuid = $_SESSION['user_id'];
if($fmuid!=0){
    $sql = "SELECT * FROM `fmmaked` WHERE uid=".$fmuid." ORDER BY id DESC Limit 18";
    //$data1 = $dsql->fmSelect($sqla);
    $row = $GLOBALS['db']->getAll($sql);
    //echo var_dump($data1);
    //iconv(iconv_get_encoding($data), 'UTF-8',$data)
    $info = '';
    foreach($row as $d){
        $info .= "<info>
        <name>".$d['memo']."</name>
        <urlx>".$d['url']."</urlx>
        <width>".$d['width']."</width>
        <idx>".$d['id']."</idx>
        <thumb>".$d['thumb']."</thumb>
        <size>".$d['size']."</size>
        </info>";
    }
    $info = "<root>".$info."</root>";
}else{
    $info = "<root></root>";
}
echo $info;
?>